<%-- 
   Document   : timve
   Created on : Dec 23, 2014, 11:12:44 AM
   Author     : KimCuc
--%>
<%@page import="java.sql.ResultSet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
        <link href="css/timve.css" rel="stylesheet" type="text/css" />  
        <link href="css/bootstrap.min.css" rel="stylesheet"/>
        <script src="jquery-1.10.2.js" language="script" type="text/javascript"></script>
        <script src="FrmTimChuyenBay/jquery-1.10.2.js" language="script" type="text/javascript"></script>
        <script src="FrmTimChuyenBay/jquery-ui.js" language="script" type="text/javascript"></script>
        <link rel="stylesheet" href="FrmTimChuyenBayjquery-ui.css"/>
        <script src="FrmTimChuyenBay/DatePicker.js" language="script" type="text/javascript"></script>
        <script src="bootstrap/js/jquery.min.js" type="text/javascript"></script>
        <script src="js/bootstrap.min.js" type="text/javascript"></script>
        <link href="bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"/>

    </head>

    <body>
        <div id="tmain">
            <div id="head">
                <div id="head-left"></div>
                <div id="head-content"></div></div>
            <!------------------------------------------------thanh menu------------------------------>
            <div class="head_link">
                <div class="wrap">
                    <div class="main-menu">
                        <ul>
                            <li><a href="">Trang Chủ </a></li>
                            <li><a href="">Khuyến Mãi </a>
                                <ul>
                                    <li><a href="">Gia Trực Tuyến </a></li>
                                    <li><a href="">Trên Chuyến Bay</a></li></li>
                        </ul>
                        <li><a href="">Thông Tin đặt vé </a>
                            <ul>
                                <li><a href="">Đăt Vé </a></li>
                                <li><a href="">Hủy Vé </a></li>
                        </li></ul>
                        <li><a href="Travel/MainTravel/div.html">360 Du Lich</a></li>
                        </li>
                        </ul>
                        <div id="search"></div>
                        <div class="clear"></div>
                    </div>
                </div>

            </div>
            <!--------------------------------------------------endmenu-------------------------->
            <div id="left"></div>
            <div id="right"></div>
            <!-----------------------------form bên trái-------------------------------------->
            <div id="content">

                <form name="frmTimChuyenBay" method="post" action="/DoAn_final/controller_timve" style="margin: 0px;">
                    <input type="hidden" name="language" value="vi">
                        <table  >
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <b>
                                                <a href="#" style="color:black;text-decoration: none;">Đặt Vé Online</a>
                                            </b>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: 5px solid #00A69B;border-top: 5px solid #00A69B;
                                    border-right: 5px solid #00A69B;border-left: 5px solid #00A69B;padding: 15px 8px 0px 19px">
                                    <table border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td height="150" valign="top">
                                                <div id="bodyTab" style="display: ">
                                                    <table  border="0" width="100%" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td style="text-align: left;" valign="top" colspan="2">
                                                                <table>
                                                                    <tr>
                                                                        <td><input type="radio" name="kieuve" value="KhuHoi" onclick="hide(this.value)" checked>&nbsp;Khứ hồi&nbsp;</td>
                                                                        <td><input type="radio" name="kieuve" value="MotChieu" onclick="hide(this.value)">&nbsp;Một chiều&nbsp;<td>
                                                                                    </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                                <tr><td>&nbsp;</td></tr>
                                                                                <tr>
                                                                                    <td width="500">
                                                                                        <table witdh="97%">
                                                                                            <tr style="text-align: left;">
                                                                                                <td nowrap="nowrap">Đi từ: </td>
                                                                                                <td width="230px" style="padding-bottom: 4px;">
                                                                                                    <select id="ChonNoiDi"name="cmbnoidi">
                                                                                                        <option >Chọn nơi đi</option>
                                                                                                        <optgroup label="Việt Nam">
                                                                                                            <option value="H">Tp.HCM (SGN)</option>
                                                                                                            <option value="HAN">HANOI (HAN)</option>
                                                                                                            <option value="CXR">Nha Trang (CXR)</option>
                                                                                                            <option value="DAD">Đà Nẵng (DAD)</option>
                                                                                                            <option value="DLI">Đà Lạt (DLI)</option>
                                                                                                        </optgroup>
                                                                                                        <optgroup label="Châu Âu">
                                                                                                            <option value="BCN">Barcelona (BCN)</option>
                                                                                                            <option value="PAR">Paris( PAR)</option>
                                                                                                            <option value="ROM">Rome (ROM)</option>
                                                                                                            <option value="LON">London (LON)</option>
                                                                                                        </optgroup>
                                                                                                        <optgroup label="Đông Nam Á">
                                                                                                            <option value="BKK">Bankok (BKK)</option>
                                                                                                            <option value="JKT">Jakarta (JKT)</option>
                                                                                                            <option value="SIN">Singapore (SIN)</option>
                                                                                                        </optgroup>
                                                                                                    </select>
                                                                                                </td>
                                                                                                <td nowrap="nowrap">Ngày đi: </td>
                                                                                                <td style="padding-bottom: 4px;">
                                                                                                    <input id="datepicker" type="text">
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr><!--ô select thứ 2-->
                                                                                <tr>
                                                                                    <td width="500">
                                                                                        <table witdh="97%">
                                                                                            <tr style="text-align: left;">
                                                                                                <td nowrap="nowrap">Đến : </td>
                                                                                                <td width="230px" style="padding-bottom: 4px;">
                                                                                                    <select id="ChonNoiDen"name="cmbnoiden">
                                                                                                        <option>Chọn nơi đến</option>
                                                                                                        <optgroup label="Việt Nam"name="cmbnoiden">
                                                                                                            <option value="SGN">Tp.Hồ Chí Minh (SGN) </option>
                                                                                                            <option value="t">HANOI (HAN)</option>
                                                                                                            <option value="CXR">Nha Trang (CXR) </option>
                                                                                                            <option value="DAD">Đà Nẵng (DAD)</option>
                                                                                                            <option value="DLI">Đà Lạt (DLI)</option>
                                                                                                        </optgroup>
                                                                                                        <optgroup label="Châu Âu">
                                                                                                            <option value="BCN">Barcelona (BCN)</option>
                                                                                                            <option value="PAR">Paris( PAR)</option>
                                                                                                            <option value="ROM">Rome (ROM)</option>
                                                                                                            <option value="LON">London (LON)</option>
                                                                                                        </optgroup>
                                                                                                        <optgroup label="Đông Nam Á">
                                                                                                            <option value="BKK">Bankok (BKK)</option>
                                                                                                            <option value="JKT">Jakarta (JKT)</option>
                                                                                                            <option value="SIN">Singapore (SIN)</option>
                                                                                                        </optgroup>
                                                                                                    </select>
                                                                                                </td>
                                                                                                <td nowrap="nowrap" id="labelngayve">Ngày về: </td>
                                                                                                <td style="padding-bottom: 4px;" id="inputngayve">
                                                                                                    <input id="datepicker2" type="text">
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr><!--ô select thứ 4-->
                                                                                </table>
                                                                                <tr>
                                                                                    <td colspan="2" align="left">
                                                                                        <table style="text-align: left;" cellspacing="0" cellpadding="0">
                                                                                            <tr>
                                                                                                <td width="90" align="left">
                                                                                                    Người lớn: 
                                                                                                </td>
                                                                                                <td width="60" align="left">
                                                                                                    <select>
                                                                                                        <option value="nguolon1">1</option>
                                                                                                        <option value="nguolon2">2</option>
                                                                                                        <option value="nguolon3">3</option>
                                                                                                    </select>
                                                                                                </td>
                                                                                                <td width="150" align="left">
                                                                                                    Trẻ em (2- <12tuổi): 
                                                                                                </td>
                                                                                                <td width="60" align="left">
                                                                                                    <select>
                                                                                                        <option value="treem0">0</option>
                                                                                                        <option value="treem1">1</option>
                                                                                                        <option value="treem2">2</option>
                                                                                                    </select>
                                                                                                </td>
                                                                                                <td width="150" align="left">
                                                                                                    Trẻ sơ sinh (<2 tuổi): 
                                                                                                </td>
                                                                                                <td width="60" align="left">
                                                                                                    <select>
                                                                                                        <option value="sosinh0">0</option>
                                                                                                        <option value="sosinh1">1</option>
                                                                                                    </select>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr><td>&nbsp;</td></tr>
                                                                                        </table>
                                                                                        <input type="submit" value="Tìm Chuyến Bay" id="TimChuyenBay">
                                                                                    </td>
                                                                                </tr>

                                                                                <hr>
                                                                                    </div><!--Khung đăng ký-->
                                                                                    </td>
                                                                                    </tr>
                                                                                    </table>
                                                                                    <hr>
                                                                                        </td>
                                                                                        </tr>
                                                                                        </table>
                                                                                        </form>

                                                                                        <!-------------------------------------eanFORM---------------------------------------->

                                                                                        <h1> Thông Tin Tìm Kiếm &nbsp;&nbsp;<input type="submit" name="searchall" value="Xem Tất Cả"/></h1>
                                                                                        <% ResultSet rs = (ResultSet) request.getAttribute("INFO");
       int a = 0;%>          
                                                                                        <table border="1" class="table table-bordered">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th>STT</th>
                                                                                                    <th>Mã Vé</th>
                                                                                                    <th>Mã chuyến bay</th>                   
                                                                                                    <th>Nơi đi</th>
                                                                                                    <th>nơi đến</th>                    
                                                                                                    <th>Loại Vé</th>
                                                                                                    <th>Gía vé</th>  
                                                                                                    <th>Trang Thai</th>
                                                                                                    <th>NgayBay</th>
                                                                                                </tr>               
                                                                                            </thead>
                                                                                            <tbody>               
                                                                                                <%
                                                                                                    while (rs.next()) {
                                                                                                %>
                                                                                                <td><%=a + 1%></td>
                                                                                                <td><%=rs.getString("MaVe")%></td>
                                                                                                <td><%=rs.getString("MaCB")%></td>
                                                                                                <td><%=rs.getString("NoiDi")%></td>
                                                                                                <td><%=rs.getString("NoiDen")%></td>             
                                                                                                <td><%=rs.getString("LoaiVe")%></td>
                                                                                                <td><%=rs.getFloat("GiaVe")%></td>
                                                                                                <td><%=rs.getBoolean("TrangThai")%></td>
                                                                                                <td<%=rs.getString("NgayBay")%>td>      
                                                                                                        <td><a href="">Đặt Vé</a></td>         
                                                                                                        <%}%>
                                                                                                        </tbody>
                                                                                                        </table>

                                                                                                        </div>
                                                                                                        <!----------------------------------foooter--------------------------------------->
                                                                                                        <div id="footer">
                                                                                                            <div>
                                                                                                                <ul class="navigation">
                                                                                                                    <li class="active">
                                                                                                                        <a href="index.html">Home</a>
                                                                                                                    </li>
                                                                                                                    <li>
                                                                                                                        <a href="about.html">About</a>
                                                                                                                    </li>
                                                                                                                    <li>
                                                                                                                        <a href="rooms.html">Ticket</a>
                                                                                                                    </li>

                                                                                                                    <li>
                                                                                                                        <a href="news.html">News</a>
                                                                                                                    </li>
                                                                                                                    <li>
                                                                                                                        <a href="contact.html">Contact</a>
                                                                                                                    </li>
                                                                                                                </ul>
                                                                                                                <div id="connect">
                                                                                                                    <a href="http://pinterest.com/fwtemplates/" target="_blank" class="pinterest"></a> <a href="http://freewebsitetemplates.com/go/facebook/" target="_blank" class="facebook"></a> <a href="http://freewebsitetemplates.com/go/twitter/" target="_blank" class="twitter"></a> <a href="http://freewebsitetemplates.com/go/googleplus/" target="_blank" class="googleplus"></a>
                                                                                                                </div>
                                                                                                            </div>
                                                                                                            <p>
                                                                                                                © 2023 by BHACCASYONIZTAS BEACH RESORT. All Rights Reserved
                                                                                                            </p>
                                                                                                        </div>
                                                                                                        </div>
                                                                                                        </div>
                                                                                                        </body>
                                                                                                        </html>


